#include<stdio.h>
#include <unistd.h>
#include<sys/types.h>
#include<unistd.h>
int main()
{
    pid_t id = fork();
    if(id == 0)
    {
        printf("my is son pid:%d ppid:%d\n",getpid(),getppid());

    }
    else 
    {
        
        printf("my is father pid:%d ppid:%d\n",getpid(),getppid());

    }
 //   while(2)
 //   {
 //       printf("my pid:%d my ppid: %d\n",getpid(),getppid());
   //     sleep(1);
   //  }

    return 0;
}
